<?php
declare (strict_types=1);

namespace app\command;

use app\model\DeviceDataFrozen;
use app\service\GetWeatherInfo;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

class CleanDataByDate extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('clean_data_by_date')
            ->setDescription('定期清理数据');
    }

    protected function execute(Input $input, Output $output)
    {
        $date = strtotime('-6 month', time());
        //DeviceDataFrozen::where('create_time', '<', $date)->order('id ASC')->delete();
        //$res = app(GetWeatherInfo::class)->getInfo('39.130.102.129');
    }
}
